package play.go.controller;

import org.slim3.controller.Navigation;

import play.go.GoServer;
import play.go.model.Game;
import play.go.model.Player;

public class ResignController extends AbstructGoController {

    @Override
    public Navigation run() throws Exception {
        Player player = getPlayer();
        Game game = getGame();
        System.out.println("resign: " + player);
        GoServer.resign(game, player);
        return text("OK");
    }

}
